import java.util.Scanner;

public class Driver {
	public static void main(String[] args) {
		DiveTable diveTable = new DiveTable();
		
		int depth;
		int unit;
		int time;
		String group;
		boolean check;
		
		Scanner scan = new Scanner(System.in);
		
		System.out.println("Selecting units: Please press 1) for meters and 2) for feet ");
		unit = scan.nextInt();
		
		System.out.println("Selecting depth: Please insert the appropriate depth in integers ");
		depth = scan.nextInt();
		
		System.out.println("Selecting time: Please insert the amount of time in terms of minutes ");
		time = scan.nextInt();
		
		System.out.println("Selecting group: Please insert which group you are in: ");
		group = scan.next();
		
		check = diveTable.diveCheck(depth, unit, time,group);
		
		if(check == false){
			System.out.println("Dive cannot be done");
		}
		else{
			System.out.println("Dive can be done");
		}
		
		System.out.println("Testing for the new group that is found by using dive table 2.");
		
		System.out.println("Selecting time: Please insert the length of the break in terms of minutes ");
		time = scan.nextInt();
		
		System.out.println("Selecting group: Please insert which group you are in: ");
		group = scan.next();
		
		System.out.println(diveTable.breakGroupCalculator(group, time));
		
		scan.close();
	}
}
